const routes = [
  {
    path: '/',
    redirect: '/index'
  },
  {
    path: '/index',
    name: 'index',
    component: () => import('../views/Index.vue'),
    children: [
      {
        path: 'home',
        name: 'home',
        component: () => import('../views/Home.vue')
      },
      {
        path: 'infoShow',
        name: 'infoShow',
        component: () => import('../views/InfoShow.vue')
      },
      {
        path: 'fundList',
        name: 'fundList',
        component: () => import('../views/FundList.vue')
      }
    ]
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('../views/Register.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/Login.vue')
  },
  {
    path: '*',
    name: 'error',
    component: () => import('../views/Error.vue')
  }
]

export default routes
